<div class="panel">
    <form id="frmMain" action="{:U('Customer/customer_import_save')}" method="post" enctype="multipart/form-data">
        <ul>
            <li>
                <label>Excel文件：</label>
                <input type="file" name="xlsFile" title="请选择Excel文件!" required />
                <a href="{:U('DownloadHandler/download','file=customer_import_file.xlsx')}">[下载模板]</a>
                <span style="color:#333; display: block; margin-left: 78px;"><strong style='padding:5px 0px; font-weight:bold; color:#090;'>如导入遇到问题，请仔细阅读以下规则：</strong><br />1.支持导入excel文件<br />2.<strong style="font-weight: bold;color:#F00; ">文件名不能含有中文</strong><br />3.<strong style="font-weight: bold;color:#F00; ">Excel文件行数建议不超过1万行</strong>,超过1万行请拆分到多个Excel文件中<br />4.内容列格式：客户姓名|电话号码|联系地址,(标题头必须一致!)如不符合格式请先整理后导入!</span>
            </li>
            <li style="display:none;">
                <label>去除重复</label>
                <input type="checkbox" name="skipDuplicate" value="1"/>
            </li>
            <li>
                <label>&nbsp;</label>
                <input type="button" value="保存" onclick="submitform('order');" /><!--<input type="button" value="乱序保存" onclick="submitform('random');"/>--><input type="button" value="关闭" class="btn-close-dialog"/>
            </li>
        </ul>
        <input type="hidden" name="rule" value="random"/>
    </form>
</div>
<script>
    resize_dialog(436);
    function submitform(rule) {
        $('#frmMain input:button').button({'disabled': true, 'label': '正在处理...'});
        $('input[name="rule"]').val(rule);
        $('#frmMain').submit();
    }
</script>